import request from '@/utils/request'

// 查询用户订阅列表
export function listSubscribe(query) {
  return request({
    url: '/web/subscribe/list',
    method: 'get',
    params: query
  })
}

// 查询用户订阅详细
export function getSubscribe(ID) {
  return request({
    url: '/web/subscribe/get' ,
    method: 'get',
    params: {ID}
  })
}

// 新增用户订阅
export function addSubscribe(data) {
  return request({
    url: '/web/subscribe',
    method: 'post',
    data: data
  })
}

// 修改用户订阅
export function updateSubscribe(data) {
  return request({
    url: '/web/subscribe',
    method: 'put',
    data: data
  })
}

// 删除用户订阅
export function delSubscribe(ID) {
  return request({
    url: '/web/subscribe/' + ID,
    method: 'delete'
  })
}
